package org.jeecg.modules.app.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import org.jeecg.modules.app.entity.AppPushRecord;
import org.jeecg.modules.app.vo.PushTargetVO;

import java.util.List;

/**
 * @author by sean
 * @desc: 消息推送接口
 * @since 2024-12-11 星期三 11:36:41
 */
public interface IPushMessageService {

    //推送个cid
    public JsonNode push(PushTargetVO target, JsonNode config, AppPushRecord message) throws JsonProcessingException;

    //推送给多个cid(广播)
    public JsonNode broadcast(List<PushTargetVO> targetList, JsonNode config, AppPushRecord message) throws JsonProcessingException;
}
